package com.yenlien.traceyun.control.entity;

import com.yenlien.traceyun.webase.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * Created by LiuSha on 2020/3/20.
 * 模型库产物
 */
@Entity
@Table(name = "t_model_crop")
public class ModelCrop extends BaseEntity {

    /**
     * 分类id
     */
    @Column(name = "category_id", length = 32)
    private String categoryId;

    @Column(name = "name", length = 50)
    private String name;//作物名称

    @Column(name = "other_name", length = 50)
    private String otherName;//作物别名

    @Column(name = "code", length = 50)
    private String code;//编码

    @Column(name = "img", length = 50)
    private String img;//图片

    @Column(name = "remarks", length = 400)
    private String remarks;//备注

    /**
     * 客户自定义添加的作物
     */
    @Column(name = "company_id", length = 32)
    private String companyId;

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOtherName() {
        return otherName;
    }

    public void setOtherName(String otherName) {
        this.otherName = otherName;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }
}
